package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.StudentDO;
import com.pipi.sso.dao.query.StudentQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for Student.
 */
public interface StudentManager {
    /**
     * query count by query condition.
     */
    int countByQuery(StudentQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(StudentQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(StudentDO record);

    /**
     * insert selective.
     */
    long insertSelective(StudentDO record);

    /**
     * select by query condition.
     */
    List<StudentDO> selectByQuery(StudentQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<StudentDO> selectByQueryWithPage(StudentQuery query);

    /**
     * select by primary key.
     */
    StudentDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( StudentDO record,  StudentQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(StudentDO record, StudentQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(StudentDO record);
}